package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.DiscountOrderRefund;
import com.ecoolex.discount.sales.entity.DiscountOrderRefundExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DiscountOrderRefundMapper {
    long countByExample(DiscountOrderRefundExample example);

    int deleteByExample(DiscountOrderRefundExample example);

    int deleteByPrimaryKey(Integer refundId);

    int insert(DiscountOrderRefund record);

    int insertSelective(@Param("record") DiscountOrderRefund record, @Param("selective") DiscountOrderRefund.Column ... selective);

    DiscountOrderRefund selectOneByExample(DiscountOrderRefundExample example);

    List<DiscountOrderRefund> selectByExample(DiscountOrderRefundExample example);

    DiscountOrderRefund selectByPrimaryKey(Integer refundId);

    DiscountOrderRefund selectByPrimaryKeyWithLogicalDelete(@Param("refundId") Integer refundId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DiscountOrderRefund record, @Param("example") DiscountOrderRefundExample example, @Param("selective") DiscountOrderRefund.Column ... selective);

    int updateByExample(@Param("record") DiscountOrderRefund record, @Param("example") DiscountOrderRefundExample example);

    int updateByPrimaryKeySelective(@Param("record") DiscountOrderRefund record, @Param("selective") DiscountOrderRefund.Column ... selective);

    int updateByPrimaryKey(DiscountOrderRefund record);

    int batchInsert(@Param("list") List<DiscountOrderRefund> list);

    int batchInsertSelective(@Param("list") List<DiscountOrderRefund> list, @Param("selective") DiscountOrderRefund.Column ... selective);

    int logicalDeleteByExample(@Param("example") DiscountOrderRefundExample example);

    int logicalDeleteByPrimaryKey(Integer refundId);
}